package com.ry;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
 *  api类包导入的dubbo listener发布后,可以直接用导入的接口调用发布的dubbo服务
 *  basePackages指定api所在的包,一定要写具体明确的包路径
 */
@Slf4j
public class DemoApplication {
    public static void main(String[] args) {
//        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext();
//        annotationConfigApplicationContext.register(ConfigServices.class);
//        annotationConfigApplicationContext.scan("com.weimob.example.starlinker.spirng.test");
//        annotationConfigApplicationContext.refresh();
//        annotationConfigApplicationContext.getBean(ServicesB.class);
//        LogTestApi bean=annotationConfigApplicationContext.getBean(LogTestApi.class);
//        bean.test();
//        System.out.println(annotationConfigApplicationContext);


        ClassPathXmlApplicationContext classPathXmlApplicationContext=new ClassPathXmlApplicationContext();
        classPathXmlApplicationContext.refresh();

//        System.out.println("runing ...");
//        SpringApplication.run(StarLinkerDemoApplication.class,args);
    }

}
